﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace XmlWork
{
    interface IXmlWorker
    {
        string ObjectName {get;}
		/*
			Типичное использование:
			xmlOut.WriteStartElement(ObjectName);
            xmlOut.WriteAttributeString("Minimize", minimizeCheckBox.Checked.ToString());
            xmlOut.WriteEndElement();
		*/
		void SaveToFile(ref XmlTextWriter xmlOut);
		/*
			Типичное использование:
            try
            {
                if (xmlIn.Name == ObjectName)
                {
                    minimizeCheckBox.Checked = Convert.ToBoolean(xmlIn.GetAttribute("Minimize"));
                }
            }
            catch (Exception)
            { }
		*/
		void ReadFromFile(XmlTextReader xmlIn);
    }
}
